<div class="page-content">
    <div class="page-header position-relative">
        <h1>Habitaci&oacute;n<small><i class="icon-double-angle-right"></i> Mantenimiento</small></h1>
    </div>
    <div class="row-fluid">
        <div class="span12">
            <div class="widget-box">
                <div class="widget-header"><h4>Formulario Habitaci&oacute;n</h4>
                    <span class="widget-toolbar">
                        <a data-action="collapse" href="#">
                            <i class="icon-chevron-up"></i>
                        </a>
                    </span>
                </div>
                <?php
                if (empty($registros)) {
                    $cod_tiphab = "";
                    $desc_tiphab= "";
                    $tar_tiphab = "";
                   
                } else {
                    $cod_tiphab = $registros[0]->id_tipo;
                    $desc_tiphab= $registros[0]->desc_tipo;
                    $tar_tiphab= $registros[0]->tarifa;
                   
                    
                    
                }
                ?>
                <div class="widget-body">
                    <div class="widget-body-inner">
                        <div class="widget-main">
                            <form action="<?php echo base_url("intranet/administrador/registrarModificarTipoHabitacion");?>" class="form-horizontal" method='post'>
  <div class="row-fluid">
                                    <div class="span5">
                                        <div class="control-group">
                                            <label class="control-label" for="desc">Descripción</label>
                                            <div class="controls">
                                                <input type='hidden' id='cod' name='cod' value="<?php echo $cod_tiphab; ?>" >
                                                <input type='text' id='desc' name='desc' value="<?php echo $desc_tiphab; ?>" required='required' class="span12">
                                            </div>                                            
                                        </div>
                                                                                                                               
                                            
                                      
                                        
                                       
                                    </div>
                                    <div class="span5">
                                        <div class="control-group">
                                            <label class="control-label" for="tar">Tarifa</label>
                                            <div class="controls">
                                                <input type='text' id='tar' name='tar' class="span12" value="<?php echo $tar_tiphab; ?>">
                                            </div>                                            
                                        </div>
                                       
                                        
                                    </div>
                                </div>
                                
                                <div class="form-actions">
                                    <button type='submit' class='btn btn-primary'><i class="icon-save"></i> Guardar</button>                    
                                </div>

                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    
